<?php if ($this->content_nav_menu) { ?>
<div class="container category">
	<div class="row">
	<div class="col-sm-12">
	<?php if (get_setting('category_display_mode') == 'list') { ?>
		<ul class="list">
			<li<?php if (!$_GET['category'] AND !$this->feature_info) { ?> class="active"<?php } ?>><a href="<?php echo $this->content_nav_menu['base']['link']; ?>"><?php _e('全部'); ?></a></li>
			
			<?php foreach ($this->content_nav_menu as $key => $val) { ?>
			<?php if ($val['title']) { ?>
			<li<?php if (($val['type'] == 'category' AND $_GET['category'] AND ($val['type_id'] == $this->category_info['id'] OR $this->category_info['parent_id'] == $val['type_id'])) OR ($val['type'] == 'feature' AND $this->feature_info['id'] == $val['type_id'])) { ?> class="active"<?php } ?>>
				<a href="<?php echo $val['link']; ?>"<?php if ($val['type'] == 'custom') { ?> target="_blank"<?php } ?>><?php echo $val['title']; ?></a>
				<?php if ($val['child'] && get_setting('nav_menu_show_child') == 'Y') { ?>
				<div class="aw-dropdown" role="menu" aria-labelledby="dropdownMenu">
					<span></span>
					<ul class="aw-dropdown-list">
						<?php foreach ($val['child'] AS $_key => $_val) { ?>
						<li><a href="<?php echo $_val['link']; ?>"<?php if ($_val['id'] == $this->category_info['id']) { ?> class="active"<?php } ?>><?php echo $_val['title']; ?></a></li>
						<?php } ?>
					</ul>
				</div>
				<?php } ?>
			</li>
			<?php } ?>
			<?php } ?>
		</ul>
	<?php } else { ?>
	<?php foreach ($this->content_nav_menu as $key => $val) { ?>
		<?php if ($val['title']) { ?>
		<dl<?php if (($val['type'] == 'category' AND $_GET['category'] AND ($val['type_id'] == $this->category_info['id'] OR $this->category_info['parent_id'] == $val['type_id'])) OR ($val['type'] == 'feature' AND $this->feature_info['id'] == $val['type_id'])) { ?> class="active"<?php } ?>>
			<dt><img src="<?php if ($val['icon']) { ?><?php echo get_setting('upload_url'); ?>/nav_menu/<?php echo $val['icon']; ?><?php } else { ?><?php echo G_STATIC_URL; ?>/css/<?php echo $this->template_name; ?>/img/default_class_imgs.png<?php } ?>" alt="<?php echo $val['title']; ?>" /></dt>
			<dd>
				<p class="title"><a href="<?php echo $val['link']; ?>"<?php if ($val['type'] == 'custom') { ?> target="_blank"<?php } ?>><?php echo $val['title']; ?></a></p>
				<span><?php echo $val['description']; ?></span>
			</dd>
			<?php if ($val['child'] && get_setting('nav_menu_show_child') == 'Y') { ?>
			<div class="aw-dropdown" role="menu" aria-labelledby="dropdownMenu">
				<span></span>
				<ul class="aw-dropdown-list">
					<?php foreach ($val['child'] AS $_key => $_val) { ?>
						<li><a href="<?php echo $_val['link']; ?>"<?php if ($_val['id'] == $this->category_info['id']) { ?> class="active"<?php } ?>><?php echo $_val['title']; ?></a></li>
					<?php } ?>
				</ul>
			</div>
			<?php } ?>
		</dl>
		<?php } ?>
	<?php } ?>
	<?php } ?>
	</div>
</div>
</div>
<?php }?>